<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--账户管理页面-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>账户管理</title>
<link href="css/style2.css"
	rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="js/jquery.js"></script>
<link href="css/style2.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
	var sid;
	function pop(id){
		$(".delete").fadeIn(200);
		sid = id;
	}
	$(document).ready(function() {
		 //取消按钮提示框
        $(".deletetip").click(function () {
            $(".delete").fadeIn(200);
        });

        $(".tiptop a").click(function () {
            $(".delete").fadeOut(200);
        });

        $(".sure").click(function () {
            $(".delete").fadeOut(100);
            window.location.assign("Base_User_toDelect?id="+sid)
        });

        $(".cancel").click(function () {
            $(".delete").fadeOut(100);
        });
	});
	function delectId(id){
		this.id=id;
	}
</script>
</head>
<body>
	<div class="rightinfo">
		<div class="tools">
			<ul class="toolbar">
				<!--<li class="click"><span><img src="images/t01.png"/></span>添加</li>-->
				<li><a href="Base_User_toAddPersonnel" target="rightFrame" /><span><img
						src="images/t01.png" /></span>添加</li>
			</ul>
		</div>
		<table class="tablelist">
			<thead>
				<tr>
					<th>账号<i class="sort"><img src="images/px.gif" /></i></th>
					<th>真实名称</th>
					<th width="90px">操作</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="users" var="user">
					<tr>
						<td>${user.userName }</td>
						<td>${user.realName }</td>
						<td><a href="Base_User_toEdit?id=${user.id }"
							class="modifytip">编辑</a> &nbsp;&nbsp;&nbsp;&nbsp; <a href="javascript:pop(${user.id })"
							class="deletetip" >删除</a></td>
					</tr>
				</s:iterator>
			</tbody>
		</table>


		<div class="delete">
			<div class="tiptop">
				<span>提示信息</span><a></a>
			</div>
			<div class="tipinfo">
				<span><img src="images/ticon_delete.png" /></span>
				<div class="tipright">
					<p>是否确认删除 ？</p>
					<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
				</div>
			</div>
			<div class="tipbtn">
				<input name="" type="button" class="sure" value="确定" />&nbsp; <input
					name="" type="button" class="cancel" value="取消" />
			</div>
		</div>

	</div>

	<script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</body>
</html>
